﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DB.Domain
{
	public class Member
	{
		[Required]
		public int Id { get; set; }
		[Required, MaxLength(100)]
		public string Name { get; set; }
		[MaxLength(50)]
		public string Group { get; set; }

		[Column( TypeName = "date")]
		public DateTime CreateTime { get; set; }
		//[ForeignKey(nameof(Item))]
		public List<Item> Items { get; set; }
	}
}
